<%@page import="com.cn.dao.UserDao"%>
<%@page import="com.cn.entity.User"%>

<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>北京医院</title>
</head>
<body>
<h4>用户修改</h4>
<form action="UserUpdateAction" method="post">
<table>
<%
int userid=0;
String id=request.getParameter("userid");
if (id!=null){userid=Integer.parseInt(id);}
UserDao ud=new UserDao(); 
User user=ud.scanOne(userid);
%>
<tr>
<td>用户名</td>
<td><input type="text" name="user.username" value="<%=user.getUsername()%>"></td>
</tr>
<tr>
<td>密码</td>
<td><input type="password" name="user.password" value="<%=user.getPassword()%>"></td>
</tr>
<tr>
<td>真实姓名</td>
<td><input type="text" name="user.xingming" value="<%=user.getXingming()%>"></td>
</tr>
<tr>
<td>电话</td>
<td><input type="text" name="user.phone"  value="<%=user.getPhone()%>"></td>
</tr>
<tr>
<td>身份证号码</td>
<td><input type="text" name="user.identity"  value="<%=user.getIdentity()%>"></td>
</tr>
<tr>
<td>E_mail</td>
<td><input type="text" name="user.email"  value="<%=user.getEmail()%>"></td>
</tr>
<tr>
<td>权限</td>
<td><input type="text" name="user.pro"  value="<%=user.getPro()%>"></td>
</tr>

<tr>
<td><input type="hidden" name="user.userid"  value="<%=user.getUserid()%>"></td>
<td><input type="submit" value="修改"></td>
</tr>



</table>

</form>
</body>
</html>